package com.ruoyi.vote.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投票项目对象 house_vote_t
 * 
 * @author ruoyi
 * @date 2023-10-07
 */
public class HouseVoteT extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 投票id */
    private Long voteId;

    /** 投票名称 */
    @Excel(name = "投票名称")
    private String voteName;

    /** 投票状态 VOTE001,0：关闭 1：开启 */
    @Excel(name = "投票状态 VOTE001,0：关闭 1：开启")
    private String voteSts;

    /** 统计状态 VOTE003,0：未统计 1：统计结束 */
    @Excel(name = "统计状态 VOTE003,0：未统计 1：统计结束")
    private String voteResult;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setVoteId(Long voteId) 
    {
        this.voteId = voteId;
    }

    public Long getVoteId() 
    {
        return voteId;
    }
    public void setVoteName(String voteName) 
    {
        this.voteName = voteName;
    }

    public String getVoteName() 
    {
        return voteName;
    }
    public void setVoteSts(String voteSts) 
    {
        this.voteSts = voteSts;
    }

    public String getVoteSts() 
    {
        return voteSts;
    }
    public void setVoteResult(String voteResult) 
    {
        this.voteResult = voteResult;
    }

    public String getVoteResult() 
    {
        return voteResult;
    }
    public void setCreater(String creater) 
    {
        this.creater = creater;
    }

    public String getCreater() 
    {
        return creater;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("voteId", getVoteId())
            .append("voteName", getVoteName())
            .append("voteSts", getVoteSts())
            .append("voteResult", getVoteResult())
            .append("creater", getCreater())
            .append("createDate", getCreateDate())
            .toString();
    }
}
